﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="weeklymenu.ascx.vb" Inherits="Control_WhatCookToDay_Contents" %>
<%@ Register Src="../Comment/Comment.ascx" TagName="Comment" TagPrefix="uc1" %>
<script type="text/javascript">

    function SetVoteContent(cID, txtNumLike) {
        var isLogin = '<%= Session("UserId")%>';
        if (isLogin == null || isLogin.length <= 0) {
            $("#<% =lnkLoginModal.ClientId() %>").click();
            return false;
        }
        else {
            $.ajax({
                type: "POST",
                url: '<%=ResolveUrl("~/Page/wsvProcess.asmx/LikeObject")%>',
                data: "{'oID': '" + cID + "'}",
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (msg) {

                    if (eval(msg.d) != 0) {
                        $("#" + txtNumLike).text(msg.d);
                    }
                    return false;

                },
                error: function () {

                }
            });
            return false;
        }
    }

    function SharedObject(objid) {
        $("#<%=lnkSend.ClientId %>").click();
        return false;
    }
</script>
<asp:UpdatePanel runat="server" ID="up">
    <ContentTemplate>
    
          <div class="box_cuisine_details">
          <div class="bgtop_cuisine_details">&nbsp;</div>
            <div class="bgmid_cuisine_details">
            

                 <div class="text_titlelist"><h1> <asp:HyperLink ID="hplCategory" runat="server"></asp:HyperLink></h1></div>


                <div class="containerDetailLeft">
                    <asp:HyperLink ID="hplTitle" CssClass="linkPink_width590" runat="server"></asp:HyperLink>
                    <div class="imgLageBeauty_width590_style">
                        <asp:Literal Id = "ltrViewAndUpdateDate" runat = "server"></asp:Literal>                        
                    </div>
                    <div class="imgLageBeauty_width590_style">
                        <asp:Image ID="imgDes" CssClass="imgLageBeauty_width590" runat="server" />
                    </div>
                    <div class="textPageDetail" >
                    <div  style="float:left">
                         <asp:Literal ID="ltrContent" runat="server" ></asp:Literal>
                    </div>
                       
                    </div>
                    <div style="margin: 7px  0px 7px 0px; float: left; width: 770px;">
                        <asp:LinkButton ID="lbtnShared" runat="server" CssClass="linkShare_pink1"></asp:LinkButton>

                    </div>

                    <div class="questionStyle" style="padding: 0; padding-bottom: 10px; margin-left: 0px">
                        <uc1:Comment ID="Comment1" runat="server" />
                    </div>
                </div>
            
            
            <!--- bai lien quan-->
			<div class="clear_both"></div>	
            <!--title-->
                <div class="titler_comment">
                    <ul>                                              
                        <li id="current"><a >BÀI KHÁC</a></li>                                                                
                    </ul>
            </div>

            <div class="beautyItems">
                <div class="beautyItems" style="padding-left: -10px;">
                    <asp:Repeater ID="rptArticalRelate" runat="server">
                        <ItemTemplate>
                            <div class="beautyItem1">
                                <asp:HyperLink ID="hplImg" runat="server">
                                    <asp:Image ID="imgDes" runat="server" CssClass="imgLageBeauty_style" />
                                </asp:HyperLink>
                                <asp:HyperLink ID="hplTitle" CssClass="linkPink" runat="server"></asp:HyperLink>
                                <div>
                                    <asp:Label ID="ltrDes" runat="server" CssClass="description"></asp:Label></div>
                                <asp:Label ID="lblimg" runat="server"></asp:Label>
                            </div>
                        </ItemTemplate>
                    </asp:Repeater>
                </div>
                <div class="paper" align="right">
                    <asp:LinkButton ID="lnkFirst" Text="Trước" runat="server" CausesValidation="false"
                        Enabuled="false" CssClass="pre"></asp:LinkButton>
                    <span>
                        <asp:Repeater ID="rptPage" runat="server">
                            <ItemTemplate>
                                <asp:LinkButton ID="lnkTitle" CausesValidation="false" runat="server" OnClick="lnkTitle_Click"></asp:LinkButton>
                            </ItemTemplate>
                        </asp:Repeater>
                    </span>
                    <asp:LinkButton ID="lnkLast" runat="server" Text="Sau" Enabled="false" CausesValidation="false"
                        CssClass="next"></asp:LinkButton>
                </div>
            </div>
            </div>
            <div class="bgbottom_cuisine_details">&nbsp;</div>
        </div>
    </ContentTemplate>
</asp:UpdatePanel>
<div style="display: none">
            <asp:HyperLink NavigateUrl="~/Page/Member/login.aspx?keepThis=true&TB_iframe=true&height=341&width=537&modal=true"
                ID="lnkLoginModal" CssClass="thickbox" runat="server"></asp:HyperLink>
            <asp:HiddenField ID="hidMenuId" Value="0" runat="server" />
            <!--Ket thuc phan trang bai viet khac-->
            <asp:HiddenField ID="hidCount" Value="0" runat="server" />
            <asp:HiddenField ID="hidIndex_page" Value="0" runat="server" />
            <asp:HiddenField ID="hidCur_Page" Value="1" runat="server" />
            <asp:HiddenField ID="hidSubject" Value="" runat="server" />
            <asp:HiddenField ID="hidID" Value="0" runat="server" />
            <asp:HyperLink ID="lnkSend" runat="server" CssClass="thickbox" Text="" ></asp:HyperLink>

        </div>